package com.lulufind.lulu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lulufind.lulu.vo.DemandInfoVO;
import com.lulufind.lulu.vo.DemandUserInfoVO;

public interface DemandUserAidMapper {

	public int save(@Param("aidDemandId")int aidDemandId, @Param("aidUserId")int aidUserId);
	
	public Integer findDemandAidNum(@Param("demandId")int demandId);
	public List<DemandUserInfoVO> findUserInfoByDemandAid(@Param("demandId")int demandId);
	public List<DemandInfoVO> findAidDemandInfo(@Param("userId")int userId);
	
	public Boolean checkAidExist(@Param("demandId")int demandId, @Param("userId")int userId);
	
	public int delete(@Param("demandId")int demandId, @Param("userId")int userId);
	public int deleteByDemand(@Param("demandId")int demandId);
}
